package io.e2x.testground.fruitstore.repo;

import io.e2x.testground.fruitstore.dal.entities.StoreSpu;
import org.springframework.data.repository.reactive.ReactiveCrudRepository;
import org.springframework.stereotype.Repository;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

import java.math.BigInteger;
@Repository
public interface StoreSpuRepo extends ReactiveCrudRepository<StoreSpu, Long> {
    Flux<StoreSpu> findAllByStoreId(long storeId);

    Mono<StoreSpu> findStoreSpuBySpuNo(String spuNo);

    Mono<StoreSpu> findBySkuId(long id);
}
